package edu.ntu.im.p2ptrade.action;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import edu.ntu.im.p2ptrade.entity.Dialog;
import edu.ntu.im.p2ptrade.entity.Item;
import edu.ntu.im.p2ptrade.entity.TransactionRequest;
import edu.ntu.im.p2ptrade.entity.User;
public class BackEndInformation {
	public HashMap<String, List<Dialog>> dialogs = new HashMap<String, List<Dialog>>();	
	public Map<String, User> currentPeers = new HashMap<String, User>();
	public List<Item> peerItems = new LinkedList<Item>();
	public List<Item> myItems = new LinkedList<Item>();
	public List<TransactionRequest> incoming = new LinkedList<TransactionRequest>();
	public List<TransactionRequest> denied = new LinkedList<TransactionRequest>();
	public List<TransactionRequest> aborted = new LinkedList<TransactionRequest>();
	public List<TransactionRequest> issued = new LinkedList<TransactionRequest>();
	public List<TransactionRequest> success = new LinkedList<TransactionRequest>();
	
	
	public Map<String, User> getCurrentPeers() {
		return currentPeers;
	}
	public void setCurrentPeers(Map<String, User> currentPeers) {
		this.currentPeers = currentPeers;
	}
	public List<TransactionRequest> getIssued() {
		return issued;
	}
	public void setIssued(List<TransactionRequest> issued) {
		this.issued = issued;
	}
	public HashMap<String, List<Dialog>> getDialogs() {
		return dialogs;
	}
	public void setDialogs(HashMap<String, List<Dialog>> dialogs) {
		this.dialogs = dialogs;
	}
	public List<Item> getPeerItems() {
		return peerItems;
	}
	public void setPeerItems(List<Item> peerItems) {
		this.peerItems = peerItems;
	}
	public void setMyItems(List<Item> items) {
		this.myItems = items;
		
	}
	public List<Item> getMyItems(){
		return this.myItems;
	}
	public List<TransactionRequest> getAborted() {
		return aborted;
	}
	public void setAborted(List<TransactionRequest> aborted) {
		this.aborted = aborted;
	}
	public List<TransactionRequest> getDenied() {
		return denied;
	}
	public void setDenied(List<TransactionRequest> denied) {
		this.denied = denied;
	}
	public List<TransactionRequest> getIncoming() {
		return incoming;
	}
	public void setIncoming(List<TransactionRequest> incoming) {
		this.incoming = incoming;
	}
	public List<TransactionRequest> getSuccess() {
		return success;
	}
	public void setSuccess(List<TransactionRequest> success) {
		this.success = success;
	}
	
	
}
